package com.app.designpatternslearn.behavior.visitorpattern.code

class OperatingVisitor : Visitor {
    override fun visit(phoneShop: PhoneShop) {
        println("OperatingVisitor --> phoneShop ---> number ---> ${phoneShop.number} ---> profits --->  ${phoneShop.profits}")
    }

    override fun visit(computerShop: ComputerShop) {
        println("OperatingVisitor --> computerShop ---> number ---> ${computerShop.number} ---> profits --->  ${computerShop.profits}")
    }
}